]> dgit.raspbian.org Git - gnome-shell.git/commit
overviewControls: Return zero preferred size
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 11 Mar 2021 14:26:14 +0000 (15:26 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 13 Mar 2021 22:13:25 +0000 (22:13 +0000)
commitae23ad372dde963b6101fd4fa547ba1c15a7fd97
tree0aef2354546cd82c15f3a90d30981ef26f89e804
parent9152d6613b9fbcf56d1ae0cf727c8752c98e193a
overviewControls: Return zero preferred size

The OverviewControls actor gets allocated a fixed size by its parent,
the OverviewActor, anyway, so it's pretty useless to go through the size
request machinery and add up all the sizes of items in the iconGrid,
coming up with a preferred size that's wrong anyway.

Instead simply return a min and preferred size of 0 in
get_preferred_height/width of ControlsManagerLayout.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1755>
js/ui/overviewControls.js